<?php

use Biz\service\trade\Order as sOrder;

class ConfirmReceiptAction extends ActionPlugin
{
    const USER_LEVEL = self::LEVEL_REGISTER;

    public function main()
    {
        $orderNo = $this->getRequest()->getPost('order_no', '');
        $isForce = $this->getRequest()->getPost('is_force', 0);

        $result = sOrder::confirmReceipt($this->uid, $orderNo, false, $isForce);

        $this->setSuccess($result);
    }

}